package com.forenow.demo.demo20;

public class SalariedEmployee extends Employee {
    private int monthlySalary;

    public SalariedEmployee() {
    }

    public SalariedEmployee(String name, int number, String mydata, int sal) {
        super(name, number, mydata,sal);
    }

    @Override
    int earning() {
        return monthlySalary;
    }
    public  String toString(){
        return null;
    }

    public int getMonthlySalary() {
        return monthlySalary;
    }

    public void setMonthlySalary(int monthlySalary) {
        this.monthlySalary = monthlySalary;
    }
}
